package com.example.research.dto;

import java.time.LocalDateTime;

/**
 * 查询请求DTO
 */
public class QueryRequest {
    
    // 时间筛选
    private LocalDateTime startDate;
    private LocalDateTime endDate;
    
    // 类别筛选
    private String category; // VERTICAL_PROJECT, HORIZONTAL_PROJECT, PAPER
    
    // 状态筛选
    private Integer auditStatus; // 0:待审核 1:审核通过 2:审核拒绝
    
    // 关键词搜索
    private String keyword;
    
    // 分页参数
    private Integer page = 1;
    private Integer size = 10;
    
    // 排序参数
    private String sortBy = "createdTime";
    private String sortOrder = "desc"; // asc, desc

    // Getters and Setters
    public LocalDateTime getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDateTime startDate) {
        this.startDate = startDate;
    }

    public LocalDateTime getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDateTime endDate) {
        this.endDate = endDate;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }
}
